package com.atguigu.lease.common.utils;

import java.util.Random;

//生成验证码工具类
public class VerifyCodeUtil {
    public static String verifyCode(Integer len){
        StringBuffer stringBuffer=new StringBuffer();
        for (Integer i = 0; i <len ; i++) {
            stringBuffer.append(new Random().nextInt(10));
        }
        return stringBuffer.toString();
    }
}
